package cn.dzhang.spring.boot.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import cn.dzhang.spring.boot.model.DeviceCategory;
import cn.dzhang.spring.boot.repository.DeviceCategoryRepository;
import cn.dzhang.spring.boot.service.DeviceCategoryService;
import cn.dzhang.spring.boot.service.JpaAdapter;

@Service
public class DeviceCategoryServiceImpl extends
		JpaAdapter<DeviceCategory, Integer> implements DeviceCategoryService {

	@Autowired
	private DeviceCategoryRepository repository;

	@Override
	protected JpaRepository<DeviceCategory, Integer> getRepository() {
		return repository;
	}
}
